package com.xzx.spark.core.action

import org.apache.spark.{SparkConf, SparkContext}

/**
 *
 * ${DESCRIPTION}
 *
 * @author xinzhixuan
 * @version 1.0
 * @date 2021-08-07 9:41 上午
 */
object Spark004_First {
  def main(args: Array[String]): Unit = {
    val sc = new SparkContext(new SparkConf().setMaster("local[*]").setAppName(getClass.getSimpleName))
    val result: Int = sc.makeRDD(List(1, 2, 3, 4)).first()
    println(result)
    sc.stop()
  }
}
